package com.hl.ruoyicsmshop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 用户优惠券对象 user_coupons
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
public class UserCoupons extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户优惠券ID */
    private Long userCouponId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponId;

    /** 优惠券领取时间 */
    @Excel(name = "优惠券领取时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date getTime;

    /** 优惠券使用时间 */
    @Excel(name = "优惠券使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;

    /** 优惠券状态（未使用、已使用、已过期） */
    @Excel(name = "优惠券状态")
    private String status;

    public void setUserCouponId(Long userCouponId) 
    {
        this.userCouponId = userCouponId;
    }

    public Long getUserCouponId() 
    {
        return userCouponId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setGetTime(Date getTime) 
    {
        this.getTime = getTime;
    }

    public Date getGetTime() 
    {
        return getTime;
    }

    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userCouponId", getUserCouponId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("getTime", getGetTime())
            .append("useTime", getUseTime())
            .append("status", getStatus())
            .toString();
    }
}
